app = new Vue({
	el: "#app",
	data: {
		show: false,
		actions: [],
		active: 0
	},
	methods: {

		async back() {
			window.location.href = '../service/ph_accounting.html';
		},
		caozuo() {
			this.actions = [{
					name: "新申请",
					color: "#F8F9FA",
					className: "newapply"
				},
				{
					name: "审批",
					color: "#F8F9FA",
					className: "check"
				},
				{
				name: "取消",
				color: "#F8F9FA",
				className: "delet"
				}
			]
			this.show = true;
		},
		alertMenu() {
			this.actions = [{
				name: "撤销申请",
				color: "#F8F9FA",
				className: "actclass"
			},{
				name: "取消",
				color: "#F8F9FA",
				className: "delet"
			}]
			this.show = true;
		},
		onSelect(item) {
			console.log(item);
			this.show = false;
			if (item.name == '新申请') {
				window.location.href = '../service/ph_newapply.html';
			}
			if (item.name == '审批') {
				window.location.href = '../service/ph_checkapply.html';
			}
			this.$toast({
				message: item.name,
				duration: 500,

			})
		}



	}

});
